import json
from configparser import ConfigParser
d = {}
filename = 'test.ini'
cfg= ConfigParser()
read_ok = cfg.read(filename)
for k,v in cfg.items():
    d[k] = cfg.items(k)
print(type(d))
j= json.dumps(d)
print(j,type(j))
